package 面向对象中级.继承.访问控制;

public class Fish {
    //访问控制符：private 默认 proctected public
    private String private1;//私有
    String defalut1;//默认
    protected String protected1;//受保护
    public String public1;//公有

    public void m1(){
        System.out.println(private1);
        System.out.println(defalut1);
        System.out.println(protected1);
        System.out.println(public1);
    }

}
